<template>
<div>
  <h3>{{msg}} 当前用户：xxx</h3>
  <a href="javascript:void(0)" @click="logout">安全退出</a><hr/>
  <a href="">账户管理</a>
  <a href="">类型管理</a>
  <a href="">部门管理</a>
</div>
</template>

<script>
export default {
  name: "index",
  data(){
    return{
      msg:"欢迎光临我的主页"
    };
  },
  methods:{
    logout(){
      this.$router.push({name: "login"});
    }
  }

}
</script>

<style scoped>

</style>
